package com.loong.order.common.forehead.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description: 订单配送信息参数
 * @Author: hzp
 * @Date: 2020-12-31 9:43
 */
@Builder
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class OrderDeliveryForeheadParam {

    @NotNull(message = "更新时配送详情id不能为空",groups = {CommonUpdate.class})
    private Long id;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 收货人地址
     */
    @NotNull(message = "新增时收货人地址不能为空",groups = {CommonInsert.class})
    private Long addressId;

    /**
     * 收货人姓名
     */
    @NotBlank(message = "新增时收货人姓名不能为空",groups = {CommonInsert.class})
    private String receiverName;

    /**
     * 性别 0 -》 女 1 -》男
     */
    @NotNull(message = "更新时性别不能为空",groups = {CommonInsert.class})
    private Boolean gender;

    /**
     * 区号
     */
    @NotBlank(message = "新增时区号不能为空",groups = {CommonInsert.class})
    private String areaCode;

    /**
     * 收货人手机
     */
    @NotBlank(message = "新增时收货人手机不能为空",groups = {CommonInsert.class})
    private String receiverMobile;

    /**
     * 地址名称
     */
    @NotBlank(message = "新增时地址名称不能为空",groups = {CommonInsert.class})
    private String address;

    /**
     * 详细地址
     */
    @NotBlank(message = "新增时详细地址不能为空",groups = {CommonInsert.class})
    private String addressDetail;

    /**
     * 经度
     */
    @NotBlank(message = "新增时经度不能为空",groups = {CommonInsert.class})
    private String longitude;

    /**
     * 纬度
     */
    @NotBlank(message = "新增时纬度不能为空",groups = {CommonInsert.class})
    private String latitude;
}
